<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>跳转提示</title>
<Pintuer />
<style type="text/css">
.message_box{
	width:50%;
	height:30%;
	margin-top: 10%;
	margin-left: 25%;
}
.message_content{
	height:100%;
	padding-top:28%;
	padding-bottom:25%;
}
</style>
</head>
<body>
	<div class="container">
		<div class="message_box">
			<div class="line">
				<div class="x12 padding-top padding-bottom text-center bg-yellow bg-inverse">
					操作失败！
				</div>
				<div class="message_content border">
					<div class="text-center">
						<?php if(isset($message)) {?>
							<?php echo($message); ?>
						<?php }else{?>
							<?php echo($error); ?>
						<?php }?>
					</div>
					<div class="text-center margin-top">
						页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b>
					</div>
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>
